<?php /* Smarty version 2.6.18, created on 2010-09-10 12:28:49
         compiled from alumni/profile/frm_change_password.tpl */ ?>
<div id="solvay_content2010">
	<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "alumni/public/left_menu.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
  <div id="content2010_right">
    <div class="ctn_contentright2010">
      <?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "alumni/public/top_menu.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
      <div class="content_tab">
        <div class="title_contenttab">
          <table cellpadding="0" cellspacing="0" border="0" width="100%">
          <tr>
              <td align="left">Change Password</td>
            </tr>
          </table>
         </div>
         <div class="ctn_texttab">
         	<form name="frmChangePassword" id="frmChangePassword" method="post" action="" onsubmit="return checkFrmChangePassword(this)">
          
            <table cellpadding="0" cellspacing="0" border="0" width="100%">
            	<tr>
                  <td colspan="2" class="text_13" style="color:#FF0000; text-align:center" id="id_alert_msg"><?php echo $this->_tpl_vars['STR_MSG']; ?>
</td>
                 </tr>
              <tr>
                <td width="190" class="text_13">Old Password</td>
                  <td class="text_13">
                  	<input type="password" name="old_password" id="old_password" class="input2010_300" value=""  />
                  </td>
              </tr>
              <tr>
                <td colspan="2" height="10"></td>
              </tr>
              
              <tr>
                <td width="190" class="text_13">New Password</td>
                  <td class="text_13">
                  	<input type="password" name="new_password" id="new_password" class="input2010_300" value=""  />
                  </td>
              </tr>
              <tr>
                <td colspan="2" height="10"></td>
              </tr>
              
              <tr>
                <td width="190" class="text_13">Re-enter New Password</td>
                  <td class="text_13">
                  	<input type="password" name="confirm_new_password" id="confirm_new_password" class="input2010_300" value=""  />
                  </td>
              </tr>
              <tr>
                <td colspan="2" height="10"></td>
              </tr>
              
              
              <tr>
                <td width="190" class="text_13">&nbsp;</td>
                  <td class="text_13"><input type="submit" name="" class="btn_login2010" value=" Change " /></td>
              </tr>
              
            </table>
          </form>   
          </div>
				</div>
    	</div>
   	</div>
</div>
<script type="text/javascript">
	
	function checkFrmChangePassword(p_objForm)
	{
		if ( trim(p_objForm.old_password.value) == "")
		{
			alert("Please enter old password.");
			p_objForm.old_password.focus();
			return false;
		}
		
		if ( trim(p_objForm.new_password.value) == "")
		{
			alert("Please enter new password.");
			p_objForm.new_password.focus();
			return false;
		}
		
		if ( !CheckCharPassword(trim(p_objForm.new_password.value)) )
		{
			alert("New password invalid.");
			p_objForm.new_password.focus();
			return false;
		}
		
		if ( trim(p_objForm.new_password.value) != trim(p_objForm.confirm_new_password.value) )
		{
			alert("Re-enter new password not match!");
			p_objForm.confirm_new_password.focus();
			return false;
		}
		
		return true;
		
	}


	function checkEditContact(p_objForm)
	{
		var frm = xoad.html.exportForm('frmEditContact');
		callAJAX('xoad_handler', 'changecontact', $H({form: frm}), checkEditContact_callBack);
		disableHandleForm(document.getElementById("frmEditContact"), true);
		return false;
	}
	var checkEditContact_callBack = function checkEditContact_callBack(results)
	{
		disableHandleForm(document.getElementById("frmEditContact"), false);
		if ( results == "SUCCESS" )
		{
			innerHTML("id_alert_msg","Action successfully!");
		}
		else
		{
			innerHTML("id_alert_msg","Action unsuccessfully!");
		}
	}
</script>